package com.atguigu.mybatis.mapper;

import com.atguigu.mybatis.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Objects;

public interface ParameterMapper {

    List<User> getAllUser();

    User getUserByUsername(@Param("username") String username);

    User checkLogin(@Param("username") String username,@Param("password") String password);

    User checkLoginByMap(Map<String, Object> map);

    int insertUser(@Param("user") User user);
}
